﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UI
{
    /// <summary>
    /// 全局变量
    /// </summary>
     public  class Global
    {
         //当前登录用户Id
         public static int uid;
         //当前用户的权限
         public static int auth;
         //判断是否是数字
         public static bool isNumber(String str)
         {
             try
             {
                 Convert.ToInt32(str);
                 return true;
             }
             catch (Exception exception)
             {
                 return false;
             }
         }
        
    }
}
